package router

import (
	"OJCenter/router/api"
	"github.com/gin-gonic/gin"
)

func InitSubmissionRouter(api *api.Api, Router *gin.RouterGroup) {
	AuthorityRouter := Router.Group("Submission")
	{
		AuthorityRouter.POST("createSubmission", api.CreateSubmission)                     // 提交
		AuthorityRouter.POST("getSubmissionListInContest", api.GetSubmissionListInContest) // 获取竞赛中的提交
		AuthorityRouter.POST("getSubmissionList", api.GetSubmissionList)                   //获取提交
	}
}
